home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / gem_stri.swf / scripts / __Packages / mx / managers / FocusManager.as < prev    next >
Encoding:
Text File  |  2011-01-06  |  27.3 KB  |  755 lines

  1. var ┬º\x01┬º = 324;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 324)
  5.    {
  6.       set("\x01",eval("\x01") - 182);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") != 142)
  12.       {
  13.          break;
  14.       }
  15.       set("\x01",eval("\x01") - 114);
  16.       if(┬º┬ºpop())
  17.       {
  18.          set("\x01",eval("\x01") + 249);
  19.       }
  20.    }
  21. }
  22. if(eval("\x01") == 28)
  23. {
  24.    set("\x01",eval("\x01") + 249);
  25.    ┬º┬ºpush(┬º┬ºpop() | ┬º┬ºenumeration());
  26.    ┬º┬ºenumerate(┬º┬ºpop() >>> (┬º┬ºpop() instanceof ┬º┬ºpop()));
  27. }
  28. else if(eval("\x01") == 277)
  29. {
  30.    set("\x01",eval("\x01") + 622);
  31.    if(!_global.mx)
  32.    {
  33.       _global.mx = new Object();
  34.    }
  35.    ┬º┬ºpop();
  36.    if(!_global.mx.managers)
  37.    {
  38.       _global.mx.managers = new Object();
  39.    }
  40.    ┬º┬ºpop();
  41.    if(!_global.mx.managers.FocusManager)
  42.    {
  43.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().__get__defaultPushButton = function()
  44.       {
  45.          return this.__defaultPushButton;
  46.       };
  47.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().__set__defaultPushButton = function(x)
  48.       {
  49.          if(x != this.__defaultPushButton)
  50.          {
  51.             this.__defaultPushButton.emphasized = false;
  52.             this.__defaultPushButton = x;
  53.             this.defPushButton = x;
  54.             x.emphasized = true;
  55.          }
  56.          return this.defaultPushButton;
  57.       };
  58.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getMaxTabIndex = function(o)
  59.       {
  60.          var _loc3_ = 0;
  61.          var _loc6_ = undefined;
  62.          for(_loc6_ in o)
  63.          {
  64.             var _loc2_ = o[_loc6_];
  65.             if(_loc2_._parent == o)
  66.             {
  67.                if(_loc2_.tabIndex != undefined)
  68.                {
  69.                   if(_loc2_.tabIndex > _loc3_)
  70.                   {
  71.                      _loc3_ = _loc2_.tabIndex;
  72.                   }
  73.                }
  74.                if(_loc2_.tabChildren == true)
  75.                {
  76.                   var _loc4_ = this.getMaxTabIndex(_loc2_);
  77.                   if(_loc4_ > _loc3_)
  78.                   {
  79.                      _loc3_ = _loc4_;
  80.                   }
  81.                }
  82.             }
  83.          }
  84.          return _loc3_;
  85.       };
  86.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getNextTabIndex = function(Void)
  87.       {
  88.          return this.getMaxTabIndex(this.form) + 1;
  89.       };
  90.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().__get__nextTabIndex = function()
  91.       {
  92.          return this.getNextTabIndex();
  93.       };
  94.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().relocate = function(Void)
  95.       {
  96.          var _loc2_ = mx.managers.SystemManager.screen;
  97.          this.move(_loc2_.x - 1,_loc2_.y - 1);
  98.       };
  99.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().init = function(Void)
  100.       {
  101.          super.init();
  102.          this.tabEnabled = false;
  103.          this._width = this._height = 1;
  104.          this._x = this._y = -1;
  105.          this._alpha = 0;
  106.          this._parent.focusManager = this;
  107.          this._parent.tabChildren = true;
  108.          this._parent.tabEnabled = false;
  109.          this.form = this._parent;
  110.          this._parent.addEventListener("hide",this);
  111.          this._parent.addEventListener("reveal",this);
  112.          mx.managers.SystemManager.init();
  113.          mx.managers.SystemManager.addFocusManager(this.form);
  114.          this.tabCapture.tabIndex = 0;
  115.          this.watch("enabled",this.enabledChanged);
  116.          Selection.addListener(this);
  117.          this.lastMouse = new Object();
  118.          _global.ASSetPropFlags(this._parent,"focusManager",1);
  119.          _global.ASSetPropFlags(this._parent,"tabChildren",1);
  120.          _global.ASSetPropFlags(this._parent,"tabEnabled",1);
  121.       };
  122.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().enabledChanged = function(id, oldValue, newValue)
  123.       {
  124.          this._visible = newValue;
  125.          return newValue;
  126.       };
  127.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().activate = function(Void)
  128.       {
  129.          Key.addListener(this);
  130.          this.activated = this._visible = true;
  131.          if(this.lastFocus != undefined)
  132.          {
  133.             this.bNeedFocus = true;
  134.             if(!mx.managers.SystemManager.isMouseDown)
  135.             {
  136.                this.doLater(this,"restoreFocus");
  137.             }
  138.          }
  139.       };
  140.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().deactivate = function(Void)
  141.       {
  142.          Key.removeListener(this);
  143.          this.activated = this._visible = false;
  144.          var _loc2_ = this.getSelectionFocus();
  145.          var _loc3_ = this.getActualFocus(_loc2_);
  146.          if(this.isOurFocus(_loc3_))
  147.          {
  148.             this.lastSelFocus = _loc2_;
  149.             this.lastFocus = _loc3_;
  150.          }
  151.          this.cancelAllDoLaters();
  152.       };
  153.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().isOurFocus = function(o)
  154.       {
  155.          if(o.focusManager == this)
  156.          {
  157.             return true;
  158.          }
  159.          while(o != undefined)
  160.          {
  161.             if(o.focusManager != undefined)
  162.             {
  163.                return false;
  164.             }
  165.             if(o._parent == this._parent)
  166.             {
  167.                return true;
  168.             }
  169.             o = o._parent;
  170.          }
  171.          return false;
  172.       };
  173.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().onSetFocus = function(o, n)
  174.       {
  175.          if(n == null)
  176.          {
  177.             if(this.activated)
  178.             {
  179.                this.bNeedFocus = true;
  180.             }
  181.          }
  182.          else
  183.          {
  184.             var _loc2_ = this.getFocus();
  185.             if(this.isOurFocus(_loc2_))
  186.             {
  187.                this.bNeedFocus = false;
  188.                this.lastFocus = _loc2_;
  189.                this.lastSelFocus = n;
  190.             }
  191.          }
  192.       };
  193.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().restoreFocus = function(Void)
  194.       {
  195.          var _loc2_ = this.lastSelFocus.hscroll;
  196.          if(_loc2_ != undefined)
  197.          {
  198.             var _loc5_ = this.lastSelFocus.scroll;
  199.             var _loc4_ = this.lastSelFocus.background;
  200.          }
  201.          this.lastFocus.setFocus();
  202.          var _loc3_ = Selection;
  203.          Selection.setSelection(_loc3_.lastBeginIndex,_loc3_.lastEndIndex);
  204.          if(_loc2_ != undefined)
  205.          {
  206.             this.lastSelFocus.scroll = _loc5_;
  207.             this.lastSelFocus.hscroll = _loc2_;
  208.             this.lastSelFocus.background = _loc4_;
  209.          }
  210.       };
  211.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().onUnload = function(Void)
  212.       {
  213.          mx.managers.SystemManager.removeFocusManager(this.form);
  214.       };
  215.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().setFocus = function(o)
  216.       {
  217.          if(o == null)
  218.          {
  219.             Selection.setFocus(null);
  220.          }
  221.          else if(o.setFocus == undefined)
  222.          {
  223.             Selection.setFocus(o);
  224.          }
  225.          else
  226.          {
  227.             o.setFocus();
  228.          }
  229.       };
  230.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getActualFocus = function(o)
  231.       {
  232.          var _loc1_ = o._parent;
  233.          while(_loc1_ != undefined)
  234.          {
  235.             if(_loc1_.focusTextField != undefined)
  236.             {
  237.                while(_loc1_.focusTextField != undefined)
  238.                {
  239.                   o = _loc1_;
  240.                   _loc1_ = _loc1_._parent;
  241.                   if(_loc1_ == undefined)
  242.                   {
  243.                      return undefined;
  244.                   }
  245.                   if(_loc1_.focusTextField == undefined)
  246.                   {
  247.                      return o;
  248.                   }
  249.                }
  250.             }
  251.             if(_loc1_.tabEnabled != true)
  252.             {
  253.                return o;
  254.             }
  255.             o = _loc1_;
  256.             _loc1_ = o._parent;
  257.          }
  258.          return undefined;
  259.       };
  260.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getSelectionFocus = function()
  261.       {
  262.          var m = Selection.getFocus();
  263.          var o = eval(m);
  264.          return o;
  265.       };
  266.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getFocus = function(Void)
  267.       {
  268.          var _loc2_ = this.getSelectionFocus();
  269.          return this.getActualFocus(_loc2_);
  270.       };
  271.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().walkTree = function(p, index, groupName, dir, lookup, firstChild)
  272.       {
  273.          var _loc5_ = true;
  274.          var _loc11_ = undefined;
  275.          for(_loc11_ in p)
  276.          {
  277.             var _loc2_ = p[_loc11_];
  278.             if(_loc2_._parent == p && _loc2_.enabled != false && _loc2_._visible != false && (_loc2_.tabEnabled == true || _loc2_.tabEnabled != false && (_loc2_.onPress != undefined || _loc2_.onRelease != undefined || _loc2_.onReleaseOutside != undefined || _loc2_.onDragOut != undefined || _loc2_.onDragOver != undefined || _loc2_.onRollOver != undefined || _loc2_.onRollOut != undefined || _loc2_ instanceof TextField)))
  279.             {
  280.                if(_loc2_._searchKey == this._searchKey)
  281.                {
  282.                   continue;
  283.                }
  284.                _loc2_._searchKey = this._searchKey;
  285.                if(_loc2_ != this._lastTarget)
  286.                {
  287.                   if((_loc2_.groupName != undefined || groupName != undefined) && _loc2_.groupName == groupName)
  288.                   {
  289.                      continue;
  290.                   }
  291.                   if(_loc2_ instanceof TextField && _loc2_.selectable == false)
  292.                   {
  293.                      continue;
  294.                   }
  295.                   if(_loc5_ || _loc2_.groupName != undefined && _loc2_.groupName == this._firstNode.groupName && _loc2_.selected == true)
  296.                   {
  297.                      if(firstChild)
  298.                      {
  299.                         this._firstNode = _loc2_;
  300.                         firstChild = false;
  301.                      }
  302.                   }
  303.                   if(this._nextIsNext == true)
  304.                   {
  305.                      if(_loc2_.groupName != undefined && _loc2_.groupName == this._nextNode.groupName && _loc2_.selected == true || this._nextNode == undefined && (_loc2_.groupName == undefined || _loc2_.groupName != undefined && _loc2_.groupName != groupName))
  306.                      {
  307.                         this._nextNode = _loc2_;
  308.                      }
  309.                   }
  310.                   if(_loc2_.groupName == undefined || groupName != _loc2_.groupName)
  311.                   {
  312.                      if(!(this._lastx.groupName != undefined && _loc2_.groupName == this._lastx.groupName && this._lastx.selected == true))
  313.                      {
  314.                         this._lastx = _loc2_;
  315.                      }
  316.                   }
  317.                }
  318.                else
  319.                {
  320.                   this._prevNode = this._lastx;
  321.                   this._needPrev = false;
  322.                   this._nextIsNext = true;
  323.                }
  324.                if(_loc2_.tabIndex != undefined)
  325.                {
  326.                   if(_loc2_.tabIndex == index)
  327.                   {
  328.                      if(this._foundList[_loc2_._name] == undefined)
  329.                      {
  330.                         if(this._needPrev)
  331.                         {
  332.                            this._prevObj = _loc2_;
  333.                            this._needPrev = false;
  334.                         }
  335.                         this._nextObj = _loc2_;
  336.                      }
  337.                   }
  338.                   if(dir && _loc2_.tabIndex > index)
  339.                   {
  340.                      if(this._nextObj == undefined || this._nextObj.tabIndex > _loc2_.tabIndex && (_loc2_.groupName == undefined || this._nextObj.groupName == undefined || _loc2_.groupName != this._nextObj.groupName) || this._nextObj.groupName != undefined && this._nextObj.groupName == _loc2_.groupName && this._nextObj.selected != true && (_loc2_.selected == true || this._nextObj.tabIndex > _loc2_.tabIndex))
  341.                      {
  342.                         this._nextObj = _loc2_;
  343.                      }
  344.                   }
  345.                   else if(!dir && _loc2_.tabIndex < index)
  346.                   {
  347.                      if(this._prevObj == undefined || this._prevObj.tabIndex < _loc2_.tabIndex && (_loc2_.groupName == undefined || this._prevObj.groupName == undefined || _loc2_.groupName != this._prevObj.groupName) || this._prevObj.groupName != undefined && this._prevObj.groupName == _loc2_.groupName && this._prevObj.selected != true && (_loc2_.selected == true || this._prevObj.tabIndex < _loc2_.tabIndex))
  348.                      {
  349.                         this._prevObj = _loc2_;
  350.                      }
  351.                   }
  352.                   if(this._firstObj == undefined || _loc2_.tabIndex < this._firstObj.tabIndex && (_loc2_.groupName == undefined || this._firstObj.groupName == undefined || _loc2_.groupName != this._firstObj.groupName) || this._firstObj.groupName != undefined && this._firstObj.groupName == _loc2_.groupName && this._firstObj.selected != true && (_loc2_.selected == true || _loc2_.tabIndex < this._firstObj.tabIndex))
  353.                   {
  354.                      this._firstObj = _loc2_;
  355.                   }
  356.                   if(this._lastObj == undefined || _loc2_.tabIndex > this._lastObj.tabIndex && (_loc2_.groupName == undefined || this._lastObj.groupName == undefined || _loc2_.groupName != this._lastObj.groupName) || this._lastObj.groupName != undefined && this._lastObj.groupName == _loc2_.groupName && this._lastObj.selected != true && (_loc2_.selected == true || _loc2_.tabIndex > this._lastObj.tabIndex))
  357.                   {
  358.                      this._lastObj = _loc2_;
  359.                   }
  360.                }
  361.                if(_loc2_.tabChildren)
  362.                {
  363.                   this.getTabCandidateFromChildren(_loc2_,index,groupName,dir,_loc5_ && firstChild);
  364.                }
  365.                _loc5_ = false;
  366.             }
  367.             else if(_loc2_._parent == p && _loc2_.tabChildren == true && _loc2_._visible != false)
  368.             {
  369.                if(_loc2_ == this._lastTarget)
  370.                {
  371.                   if(_loc2_._searchKey == this._searchKey)
  372.                   {
  373.                      continue;
  374.                   }
  375.                   _loc2_._searchKey = this._searchKey;
  376.                   if(this._prevNode == undefined)
  377.                   {
  378.                      var _loc3_ = this._lastx;
  379.                      var _loc7_ = false;
  380.                      while(_loc3_ != undefined)
  381.                      {
  382.                         if(_loc3_ == _loc2_)
  383.                         {
  384.                            _loc7_ = true;
  385.                            break;
  386.                         }
  387.                         _loc3_ = _loc3_._parent;
  388.                      }
  389.                      if(_loc7_ == false)
  390.                      {
  391.                         this._prevNode = this._lastx;
  392.                      }
  393.                   }
  394.                   this._needPrev = false;
  395.                   if(this._nextNode == undefined)
  396.                   {
  397.                      this._nextIsNext = true;
  398.                   }
  399.                }
  400.                else if(!(_loc2_.focusManager != undefined && _loc2_.focusManager._parent == _loc2_))
  401.                {
  402.                   if(_loc2_._searchKey == this._searchKey)
  403.                   {
  404.                      continue;
  405.                   }
  406.                   _loc2_._searchKey = this._searchKey;
  407.                   this.getTabCandidateFromChildren(_loc2_,index,groupName,dir,_loc5_ && firstChild);
  408.                }
  409.                _loc5_ = false;
  410.             }
  411.          }
  412.          this._lastNode = this._lastx;
  413.          if(lookup)
  414.          {
  415.             if(p._parent != undefined)
  416.             {
  417.                if(p != this._parent)
  418.                {
  419.                   if(this._prevNode == undefined && dir)
  420.                   {
  421.                      this._needPrev = true;
  422.                   }
  423.                   else if(this._nextNode == undefined && !dir)
  424.                   {
  425.                      this._nextIsNext = false;
  426.                   }
  427.                   this._lastTarget = this._lastTarget._parent;
  428.                   this.getTabCandidate(p._parent,index,groupName,dir,true);
  429.                }
  430.             }
  431.          }
  432.       };
  433.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getTabCandidate = function(o, index, groupName, dir, firstChild)
  434.       {
  435.          var _loc2_ = undefined;
  436.          var _loc3_ = true;
  437.          if(o == this._parent)
  438.          {
  439.             _loc2_ = o;
  440.             _loc3_ = false;
  441.          }
  442.          else
  443.          {
  444.             _loc2_ = o._parent;
  445.             if(_loc2_ == undefined)
  446.             {
  447.                _loc2_ = o;
  448.                _loc3_ = false;
  449.             }
  450.          }
  451.          this.walkTree(_loc2_,index,groupName,dir,_loc3_,firstChild);
  452.       };
  453.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getTabCandidateFromChildren = function(o, index, groupName, dir, firstChild)
  454.       {
  455.          this.walkTree(o,index,groupName,dir,false,firstChild);
  456.       };
  457.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getFocusManagerFromObject = function(o)
  458.       {
  459.          while(o != undefined)
  460.          {
  461.             if(o.focusManager != undefined)
  462.             {
  463.                return o.focusManager;
  464.             }
  465.             o = o._parent;
  466.          }
  467.          return undefined;
  468.       };
  469.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().tabHandler = function(Void)
  470.       {
  471.          this.bDrawFocus = true;
  472.          var _loc5_ = this.getSelectionFocus();
  473.          var _loc4_ = this.getActualFocus(_loc5_);
  474.          if(_loc4_ != _loc5_)
  475.          {
  476.             _loc5_ = _loc4_;
  477.          }
  478.          if(this.getFocusManagerFromObject(_loc5_) != this)
  479.          {
  480.             _loc5_ == undefined;
  481.          }
  482.          if(_loc5_ == undefined)
  483.          {
  484.             _loc5_ = this.form;
  485.          }
  486.          else if(_loc5_.tabIndex != undefined)
  487.          {
  488.             if(this._foundList != undefined || this._foundList.tabIndex != _loc5_.tabIndex)
  489.             {
  490.                this._foundList = new Object();
  491.                this._foundList.tabIndex = _loc5_.tabIndex;
  492.             }
  493.             this._foundList[_loc5_._name] = _loc5_;
  494.          }
  495.          var _loc3_ = Key.isDown(16) != true;
  496.          this._searchKey = getTimer();
  497.          this._needPrev = true;
  498.          this._nextIsNext = false;
  499.          this._lastx = undefined;
  500.          this._firstNode = undefined;
  501.          this._lastNode = undefined;
  502.          this._nextNode = undefined;
  503.          this._prevNode = undefined;
  504.          this._firstObj = undefined;
  505.          this._lastObj = undefined;
  506.          this._nextObj = undefined;
  507.          this._prevObj = undefined;
  508.          this._lastTarget = _loc5_;
  509.          var _loc6_ = _loc5_;
  510.          this.getTabCandidate(_loc6_,_loc5_.tabIndex != undefined ? _loc5_.tabIndex : 0,_loc5_.groupName,_loc3_,true);
  511.          var _loc2_ = undefined;
  512.          if(_loc3_)
  513.          {
  514.             if(this._nextObj != undefined)
  515.             {
  516.                _loc2_ = this._nextObj;
  517.             }
  518.             else
  519.             {
  520.                _loc2_ = this._firstObj;
  521.             }
  522.          }
  523.          else if(this._prevObj != undefined)
  524.          {
  525.             _loc2_ = this._prevObj;
  526.          }
  527.          else
  528.          {
  529.             _loc2_ = this._lastObj;
  530.          }
  531.          if(_loc2_.tabIndex != _loc5_.tabIndex)
  532.          {
  533.             this._foundList = new Object();
  534.             this._foundList.tabIndex = _loc2_.tabIndex;
  535.             this._foundList[_loc2_._name] = _loc2_;
  536.          }
  537.          else
  538.          {
  539.             if(this._foundList == undefined)
  540.             {
  541.                this._foundList = new Object();
  542.                this._foundList.tabIndex = _loc2_.tabIndex;
  543.             }
  544.             this._foundList[_loc2_._name] = _loc2_;
  545.          }
  546.          if(_loc2_ == undefined)
  547.          {
  548.             if(_loc3_ == false)
  549.             {
  550.                if(this._nextNode != undefined)
  551.                {
  552.                   _loc2_ = this._nextNode;
  553.                }
  554.                else
  555.                {
  556.                   _loc2_ = this._firstNode;
  557.                }
  558.             }
  559.             else if(this._prevNode == undefined || _loc5_ == this.form)
  560.             {
  561.                _loc2_ = this._lastNode;
  562.             }
  563.             else
  564.             {
  565.                _loc2_ = this._prevNode;
  566.             }
  567.          }
  568.          if(_loc2_ == undefined)
  569.          {
  570.             return undefined;
  571.          }
  572.          this.lastTabFocus = _loc2_;
  573.          this.setFocus(_loc2_);
  574.          if(_loc2_.emphasized != undefined)
  575.          {
  576.             if(this.defPushButton != undefined)
  577.             {
  578.                _loc5_ = this.defPushButton;
  579.                this.defPushButton = _loc2_;
  580.                _loc5_.emphasized = false;
  581.                _loc2_.emphasized = true;
  582.             }
  583.          }
  584.          else if(this.defPushButton != undefined && this.defPushButton != this.__defaultPushButton)
  585.          {
  586.             _loc5_ = this.defPushButton;
  587.             this.defPushButton = this.__defaultPushButton;
  588.             _loc5_.emphasized = false;
  589.             this.__defaultPushButton.emphasized = true;
  590.          }
  591.       };
  592.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().onKeyDown = function(Void)
  593.       {
  594.          mx.managers.SystemManager.idleFrames = 0;
  595.          if(this.defaultPushButtonEnabled)
  596.          {
  597.             if(Key.getCode() == 13)
  598.             {
  599.                if(this.defaultPushButton != undefined)
  600.                {
  601.                   this.doLater(this,"sendDefaultPushButtonEvent");
  602.                }
  603.             }
  604.          }
  605.       };
  606.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().sendDefaultPushButtonEvent = function(Void)
  607.       {
  608.          this.defPushButton.dispatchEvent({type:"click"});
  609.       };
  610.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().getMousedComponentFromChildren = function(x, y, o)
  611.       {
  612.          for(var _loc7_ in o)
  613.          {
  614.             var _loc2_ = o[_loc7_];
  615.             if(_loc2_._visible && _loc2_.enabled && _loc2_._parent == o && _loc2_._searchKey != this._searchKey)
  616.             {
  617.                _loc2_._searchKey = this._searchKey;
  618.                if(_loc2_.hitTest(x,y,true))
  619.                {
  620.                   if(_loc2_.onPress != undefined || _loc2_.onRelease != undefined)
  621.                   {
  622.                      return _loc2_;
  623.                   }
  624.                   var _loc3_ = this.getMousedComponentFromChildren(x,y,_loc2_);
  625.                   if(_loc3_ != undefined)
  626.                   {
  627.                      return _loc3_;
  628.                   }
  629.                   return _loc2_;
  630.                }
  631.             }
  632.          }
  633.          return undefined;
  634.       };
  635.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().mouseActivate = function(Void)
  636.       {
  637.          if(!this.bNeedFocus)
  638.          {
  639.             return undefined;
  640.          }
  641.          this._searchKey = getTimer();
  642.          var _loc2_ = this.getMousedComponentFromChildren(this.lastMouse.x,this.lastMouse.y,this.form);
  643.          if(_loc2_ instanceof mx.core.UIComponent)
  644.          {
  645.             return undefined;
  646.          }
  647.          _loc2_ = this.findFocusFromObject(_loc2_);
  648.          if(_loc2_ == this.lastFocus)
  649.          {
  650.             return undefined;
  651.          }
  652.          if(_loc2_ == undefined)
  653.          {
  654.             this.doLater(this,"restoreFocus");
  655.             return undefined;
  656.          }
  657.          var _loc3_ = _loc2_.hscroll;
  658.          if(_loc3_ != undefined)
  659.          {
  660.             var _loc6_ = _loc2_.scroll;
  661.             var _loc5_ = _loc2_.background;
  662.          }
  663.          this.setFocus(_loc2_);
  664.          var _loc4_ = Selection;
  665.          Selection.setSelection(_loc4_.lastBeginIndex,_loc4_.lastEndIndex);
  666.          if(_loc3_ != undefined)
  667.          {
  668.             _loc2_.scroll = _loc6_;
  669.             _loc2_.hscroll = _loc3_;
  670.             _loc2_.background = _loc5_;
  671.          }
  672.       };
  673.       mx.managers.FocusManager.prototype = new mx.core.UIComponent()._onMouseDown = function(Void)
  674.       {
  675.          this.bDrawFocus = false;
  676.          if(this.lastFocus != undefined)
  677.          {
  678.             this.lastFocus.drawFocus(false);
  679.          }
  680.          mx.managers.SystemManager.idleFrames = 0;
  681.          var _loc3_ = Selection;
  682.          _loc3_.lastBeginIndex = Selection.getBeginIndex();
  683.          _loc3_.lastEndIndex = Selection.getEndIndex();
  684.          this.lastMouse.x = _root._xmouse;
  685.          this.lastMouse.y = _root._ymouse;
  686.          _root.localToGlobal(this.lastMouse);
  687.       };
  688.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().onMouseUp = function(Void)
  689.       {
  690.          if(this._visible)
  691.          {
  692.             this.doLater(this,"mouseActivate");
  693.          }
  694.       };
  695.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().handleEvent = function(e)
  696.       {
  697.          if(e.type == "reveal")
  698.          {
  699.             mx.managers.SystemManager.activate(this.form);
  700.          }
  701.          else
  702.          {
  703.             mx.managers.SystemManager.deactivate(this.form);
  704.          }
  705.       };
  706.       mx.managers.FocusManager = function()
  707.       {
  708.          super();
  709.       }.enableFocusManagement = function()
  710.       {
  711.          if(!mx.managers.FocusManager.initialized)
  712.          {
  713.             mx.managers.FocusManager.initialized = true;
  714.             Object.registerClass("FocusManager",mx.managers.FocusManager);
  715.             if(_root.focusManager == undefined)
  716.             {
  717.                _root.createClassObject(mx.managers.FocusManager,"focusManager",mx.managers.DepthManager.highestDepth--);
  718.             }
  719.          }
  720.       };
  721.       mx.managers.FocusManager = function()
  722.       {
  723.          super();
  724.       }.symbolName = "FocusManager";
  725.       mx.managers.FocusManager = function()
  726.       {
  727.          super();
  728.       }.symbolOwner = mx.managers.FocusManager;
  729.       mx.managers.FocusManager = function()
  730.       {
  731.          super();
  732.       }.version = "2.0.2.126";
  733.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().className = "FocusManager";
  734.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().bNeedFocus = false;
  735.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().bDrawFocus = false;
  736.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().defaultPushButtonEnabled = true;
  737.       mx.managers.FocusManager.prototype = new mx.core.UIComponent().activated = true;
  738.       mx.managers.FocusManager = function()
  739.       {
  740.          super();
  741.       }.initialized = false;
  742.       mx.managers.FocusManager = function()
  743.       {
  744.          super();
  745.       }.UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
  746.       ┬º┬ºpush((mx.managers.FocusManager.prototype = new mx.core.UIComponent()).addProperty("defaultPushButton",mx.managers.FocusManager.prototype = new mx.core.UIComponent().__get__defaultPushButton,mx.managers.FocusManager.prototype = new mx.core.UIComponent().__set__defaultPushButton));
  747.       ┬º┬ºpush((mx.managers.FocusManager.prototype = new mx.core.UIComponent()).addProperty("nextTabIndex",mx.managers.FocusManager.prototype = new mx.core.UIComponent().__get__nextTabIndex,function()
  748.       {
  749.       }
  750.       ));
  751.       ┬º┬ºpush(ASSetPropFlags(mx.managers.FocusManager.prototype,null,1));
  752.    }
  753.    ┬º┬ºpop();
  754. }
  755.